package service.impl;

import dao.EvaluationDao;
import dao.impl.EvaluationDaoImpl;
import entity.Evaluation;
import service.EvaluationService;

import java.sql.SQLException;
import java.util.List;

public class EvaluationServiceImpl implements EvaluationService {
    EvaluationDao dao = new EvaluationDaoImpl();
    @Override
    public List<Evaluation> chaxun(int rating, String description, String time) throws SQLException, ClassNotFoundException {
        return dao.chaxun(rating, description, time);
    }

    @Override
    public int getTotalCount(int rating, String description, String time) throws SQLException, ClassNotFoundException {
        return dao.getTotalCount(rating, description, time);
    }

    @Override
    public boolean addEvaluation(String orderId,String description, int rating, String content, String tags, String name)
        throws SQLException, ClassNotFoundException {
        return dao.addEvaluation(orderId, description, rating, content, tags,name);
    }
}
